package com.example.elysiumease.mapper;

import com.example.elysiumease.model.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OperationTypeMapper {

    // 插入操作类型
    int insertOperationType(OperationType operationType);

    // 根据ID更新操作类型
    int updateOperationType(OperationType operationType);

    // 根据ID删除操作类型
    int deleteOperationType(@Param("typeId") Short typeId);

    // 根据ID查询操作类型
    OperationType selectById(@Param("typeId") Short typeId);

    // 查询所有操作类型
    List<OperationType> selectAll();
}